#include "motion_control.hpp"

ControlData CONTROL_DATA = {STOP};

void moveForward()
{
    CONTROL_DATA.move = FORWARD;
}

void moveBackward()
{
    CONTROL_DATA.move = BACKWARD;
}

void turnLeft()
{
    CONTROL_DATA.move = LEFT;
}

void turnRight()
{
    CONTROL_DATA.move = RIGHT;
}

void stop()
{
    CONTROL_DATA.move = STOP;
}
